In [1]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import csv
from collections import Counter
In [2]:
%matplotlib inline
In [3]:
import gmaps
import gmaps.datasets
gmaps.configure(api_key="AIzaSyBpKgJ8kfC7ixF-oJGZMb49k1knCw6wHyA")
In [4]:
stops_df = pd.read_csv("GTFS Dataset/stops.csv")
In [5]:
stops_df.columns
Out[5]:
In [6]:
locations = stops_df[["stop_lat", "stop_lon"]]
In [7]:
stops_df.head()
Out[7]:
In [8]:
plt.rcParams["figure.figsize"] = (12, 12)
stops_layer = gmaps.symbol_layer(locations, fill_color="blue", stroke_color="blue", scale=1)
m = gmaps.Map()
m.add_layer(stops_layer)
m
In [ ]: